<template>
<div class="person">
    <h1>typescript</h1>
    <button @click="getImage">GetImage</button>
    <div>
       <img v-for="(item, index) in dogList" :src="item" :key="index" />
    </div>
</div>
</template>

<script setup lang="ts">

import {ref, reactive, defineProps} from 'vue';
import useDog from '@/hooks/useDog';

defineOptions({
    name: 'Person123', // 组件名
});

const { dogList, getImage } = useDog();

</script>
<style lang="scss" scoped>
.person{
    background-color: skyblue;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 20px;
}
button{
    margin: 0 5px;
}
img{
    height: 100px;
    display: inline;
}
</style>
